home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 29
/
Volume 29 - JOGO DISK .iso
/
Games
/
jungle_adventure.swf
/
scripts
/
__Packages
/
VR_EMP.as
< prev
next >
Wrap
Text File
|
2006-11-29
|
811b
|
37 lines
class VR_EMP extends GameCollectable
{
var assetID = "EMP";
var editor_isItem = true;
var editor_name = "VR_EMP";
function VR_EMP()
{
super();
}
function onAddToWorld()
{
if(!_global.VR_ON_EMP)
{
this.world.removeObject(this);
return undefined;
}
}
function setCollected(obj)
{
if(this.collected)
{
return undefined;
}
this.collected = true;
obj.emp = true;
var _loc3_ = undefined;
var _loc2_ = _loc3_ = this.world.activeObjects.length;
while((_loc2_ = _loc2_ - 1) > -1)
{
_loc3_[_loc2_].immobilize();
_loc3_[_loc2_].immobilized = 2;
}
GameSound.playSound("vr");
this.world.removeObject(this);
}
}